package junit;

import org.junit.Test;
import org.junit.runner.RunWith;

import com.demo.web.service.ITestServer;
import com.jweb.framework.junit.JwebJunit4Runner;
import com.jweb.framework.junit.annotation.ContextConfiguration;
import com.jweb.plugins.rpc.annotation.RpcConsumer;
import com.jweb.plugins.rpc.impl.handler.ServiceType;

@RunWith(JwebJunit4Runner.class)
@ContextConfiguration(locations = "classpath:app.properties")
public class _Test_RPC {

	private @RpcConsumer(serviceType = ServiceType.Scoket) ITestServer rpcClient1;
	private @RpcConsumer(serviceType = ServiceType.Netty) ITestServer rpcClient2;

	@Test
	public void test() {
		System.out.println(rpcClient1.getMsg());

		System.err.println(rpcClient2.getMsg());
	}

}
